package cn.zqy.demo.day10.demo02;

public class Demo02Zi extends Demo02Fu{
    int num = 20;
    int age = 30;

    @Override
    public void getNum() {
        System.out.println("子类的 num = " + num);
    }

    @Override
    public void method(){
        System.out.println("子类中method");
    }

    public void methodZi(){
        System.out.println("子类中特有methodZi");
    }
}
